//
//  MacroDefinitions.h
//  loveFreshBeen
//
//  Created by Feng on 2017/7/10.
//  Copyright © 2017年 feng. All rights reserved.
//

#ifndef MacroDefinitions_h
#define MacroDefinitions_h

#if TARGET_IPHONE_SIMULATOR
#define SIMULATOR 1
#elif TARGET_OS_IPHONE
#define SIMULATOR 0
#endif

//点击轮播器通知
#define LFBHomeCycleViewDidSelectedNotification @"LFBHomeCycleViewDidSelectedNotification"
#define KHomeCycleViewURL @"KHomeCycleViewURL"

//点击中间图标通知
#define LFBHomeIconButtonDidClickNotification @"LFBHomeIconViewDidClickNotification"
#define KHomeIconButtonURL @"KHomeIconButtonURL"

//点击添加商品动画通知
#define LFBShoppingCartAnimationNotification @"LFBShoppingCartAnimationNotification"
#define KAnimationStatus @"KAnimationStatus"

//首页点击商品详细界面 + - 按钮
#define LFBDetailProductInfoViewNumChangeNotification @"LFBDetailProductInfoViewNumChangeNotification"
#define KDetailProductModel @"KDetailProductModel"
#define KDetailProductNum @"KDetailProductNum"

//首页中搜索页面->搜索结果->点击加减按钮 通知
#define LFBSearchResultNumChangeNotification @"LFBSearchResultNumChangeNotification"
#define KSearchResultModel @"KSearchResultModel"

#define ScreenWidth     ([UIScreen mainScreen].bounds.size.width)
#define ScreenHeight    ([UIScreen mainScreen].bounds.size.height)
#define Margin 8

//设置随机色
#define RGBColor(r, g, b) [UIColor colorWithRed:(r)/255.0 green:(g)/255.0 blue:(b)/255.0 alpha:1]

#define RandomColor RGBColor(arc4random_uniform(255), arc4random_uniform(255), arc4random_uniform(255))

//主窗口
#define kWindow ([UIApplication sharedApplication].keyWindow)

#endif /* MacroDefinitions_h */
